import service from '../server'

// 获取工单列表
export const getWorkOrderListApi = (data) => {
    return service.get('/api/v1/work-order/list',data)
}

// 创建工单
export const addWorkOrder = (data) => {
    return service.post('/api/v1/work-order/create',data)
}

// 关闭工单
export const closeWorkOrder = (orderId) => {
    return service.put('/api/v1/work-order/close/'+ orderId)
}

// 工单回复
export const replyWorkOrder = (data) => {
    return service.post('/api/v1/work-order/reply', data)
}

// 工单详情
export const getWorkOrderDetailsApi = (orderId) => {
    return service.get('/api/v1/work-order/detail/'+ orderId)
}

